package cn.lyh.gulimall.coupon.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

/**
 * @author lyh
 * @version 1.0
 * @since 2021/4/6
 */
/**
    * 专题商品
    */
@Data
@TableName(value = "sms_home_subject_spu")
public class SmsHomeSubjectSpu {
    /**
     * id
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 专题名字
     */
    @TableField(value = "name")
    private String name;

    /**
     * 专题id
     */
    @TableField(value = "subject_id")
    private Long subjectId;

    /**
     * spu_id
     */
    @TableField(value = "spu_id")
    private Long spuId;

    /**
     * 排序
     */
    @TableField(value = "sort")
    private Integer sort;

    public static final String COL_ID = "id";

    public static final String COL_NAME = "name";

    public static final String COL_SUBJECT_ID = "subject_id";

    public static final String COL_SPU_ID = "spu_id";

    public static final String COL_SORT = "sort";
}